<?php
namespace plugins\order\controller;

use cmf\controller\ApiPluginBaseController;

use think\Db;
use plugins\goods\controller\ApiFreightPluginController;
use plugins\order\model\OrderModel;
use plugins\goods\model\GoodsSpecListModel;
use plugins\goods\model\GoodsSpecAttrModel;
use plugins\member\model\MemberShipAddressModel;
use plugins\order\model\OrderMemberModel;
use plugins\order\model\OrderConsigneeModel;
use plugins\order\model\OrderGoodsListModel;
use plugins\member\model\MemberModel;
use plugins\fund\api_module\Record;
use plugins\order\model\OrderLogModel;
use plugins\store\model\StoreModel;
use plugins\goods\model\GoodsModel;
use plugins\order\model\OrderNumTmpModel;

class ApiIndexController extends ApiPluginBaseController
{


	function string2array($data) {
		$data = trim($data);
		if($data == '') return array();
		if(strpos($data, 'array')===0){
			@eval("\$array = $data;");
		}else{
			if(strpos($data, '{\\')===0) $data = stripslashes($data);
			$array=json_decode($data,true);
		}
		return $array;
	}	



}